package com.tea.config.security;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@ConfigurationProperties(prefix = "tea.security")
@Component
@Data
public class SecurityProperties {
    
    private Whitelist whitelist = new Whitelist();
    
    @Data
    public static class Whitelist {
        private List<String> urls = new ArrayList<>();
    }
} 